package cn.icatw.wallpaperapi.service;

import cn.icatw.wallpaperapi.domain.Image;
import cn.icatw.wallpaperapi.domain.dto.ImageDto;
import cn.icatw.wallpaperapi.domain.vo.ImageVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * 壁纸表(Image)表服务接口
 *
 * @author icatw
 * @since 2022-10-14 19:58:55
 */
public interface ImageService extends IService<Image> {
    /**
     * 页面列表
     *
     * @param name    名字
     * @param current 当前
     * @param size    大小
     * @param request
     * @param imageDto
     * @return {@link Page}<{@link Image}>
     */
    Page<ImageVo> pageList(String name, int current, int size, HttpServletRequest request, ImageDto imageDto);

    Page<ImageVo> getByName(String name, int current, int size, HttpServletRequest request);
}

